#include <stdio.h> 
FILE *fp,*gp;
char buf[256];
char *s="this is a string";
int main()
{
    fp =fopen("src", "r");
    gp =fopen("dest","w");
    fgets(buf,256,fp); // read a line of up to 255
    fputs(buf,gp); // write line to destinatior
}
